home *** CD-ROM | disk | FTP | other *** search
- # -----------------------------------------------------------
- # Anflug der Garage fuer Flugzeuge. Normalerweise einfach
- # anfliegen, in Zielnaehe aber etwas langsamer werden und
- # abbremsen.
- #
- # ⌐ radon labs gmbh
- #
- # 17-Okt-00 af created
- # ------------------------------------------------------------
-
- # eine Root fuer Anflugmanoever
- new nroot airplane/gotogarage
- sel airplane/gotogarage
-
- # einfaches Anfliegen
- new ncommandlist goto
- goto.setadjusttype reach
- goto.settestcommand aggoto_test
- goto.addcommand true 0 0 -100 false 0 0 0 nothing 5.0
-
- proc aggoto_test {} {
-
- return 0.5
- }
-
-
- # Anfliegen mit Abbremsen
- new ncommandlist break
- break.setadjusttype reach
- break.settestcommand agbreak_test
- break.addcommand true 0 0 -5 false 0 0 0 nothing 1.0
- break.addcommand true 0 0 -8 false 0 0 0 nothing 2.0
- break.addcommand true 0 0 -10 false 0 0 0 nothing 3.0
- break.addcommand true 0 0 -11 false 0 0 0 nothing 4.0
- break.addcommand true 0 0 -12 false 0 0 0 nothing 1.0
-
- proc agbreak_test {} {
-
- if {[.gettargetdistance] < 15} {
- return 1.0
- } else {
- return 0.0
- }
- }
-
- sel ..
- sel ..
-
-